Implemented login process: login itself is operational but still have to
handle redirection client-side