created some new code to determine whether it's an administrator or doctor logging ine