add exception handler and move login button