updating login functionality