Prevent load by username from returning null and add error messages to the login page