implemented login functionality even though there is no point to login yet