updated login error page to controller as syntax
updated reg page to controller as syntax