updating login mechanism