Fixed login

Doesn't return info if selected user type doesn't match the one from the
file.

Signed-off-by: Mihaela Martinas <martinas.mihaela21@gmail.com>