Describe the bug
Normal users can’t login. The reason for the bug is that in ConnectionFactory class the checkLogin method is having hard-coded SQL query for ADMINISTRATOR instead of ADMINISTRATOR or Normal User. Therefore, if a Normal User tries to login into the application. This query returns a NULL result.
To Reproduce
Steps to reproduce the behavior:
- Enter Username : (Normal User's username)
- Enter password : (Normal User's password)
- User gets login error.
Expected behavior
Users should allow logging into the system if their Username and password associated with the Username is correct.
Screenshots

Describe the bug
Normal users can’t login. The reason for the bug is that in ConnectionFactory class the checkLogin method is having hard-coded SQL query for ADMINISTRATOR instead of ADMINISTRATOR or Normal User. Therefore, if a Normal User tries to login into the application. This query returns a NULL result.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Users should allow logging into the system if their Username and password associated with the Username is correct.
Screenshots
