Implemented login redirect