edits in gui and login function