Quote:
please tell me if there is any other better way
Better way is 1 single login form !
Because
you know who is a new user after the login.
Quote:
I create 3 login forms for security
Don't want to be rude, but it looks like you don't really understand how security works.
Procedure:
- Login user
- check if user/password exist, otherwise, go back to login
- Get role for user
- Store role in app variable
- user that variable to activate parts of app depending role.