Submit and edit check for login, added logout feature