Added LDAP verification and changed 404 page to return 404 code