Added logger. Redirect to / when login