Fixed bug where logging in redirects to login page.

Now, when you login it redirects to root. Also, if you try to access login or signup pages while logged in it will redirect to user's profile/dashboard page