frontend/refactoring
main
- use STATES instead of multiple different variables - add check if password is correct -