title: Add user custom field check to Moodle login page
body: <p>I have custom user profile field <code>Faculty</code>.</p>
  
  <p>I want to check it in the user login page, if the user is not assigned as <code>Faculty</code> returned to login page.
  How can I do this?</p>