Moved LDAP connection to new function.
Moved account methods to model.
Merge branch 'validations'
wait for push