Modified application templates so when trying to log in when already logged in it just redirects to homepage instead of throwing exceptions