Properly redirect to profile page from login