Login sends user to the right url