added the return code 500 on bad login so it would go by the error callback of the ajax call
do login on enter keypress