LDAP Implementation

Allows the user to log in using both databases: Weby or LDAP
Don't use parentheses around the condition of an `if`.