fixed logout/login form bugs