Fixed loop in redirecting

- Added fixed redirect when already logged in