Fixed bug when after login user was shown his data instead of refreshing(redirecting) to index.