some bug fixes, set default buttons for login and registration windows