Fixed the login function function. Successful login will display an alert. Failed login will not proceed further and console an error. Also added validation to avoid duplicate user name. It is prevented at the back end.But should add code to display the error on the UI.
Hi Saryn,
Fixed the login function function. Successful login will display an alert. Failed login will not proceed further and console an error. Also added validation to avoid duplicate user name. It is prevented at the back end.But should add code to display the error on the UI.
Please review and merge.