updated js structure and email validation as well as handling and showing model error
updated controller spec