Completed validator library
Added validation to login and register
Displaying errors in a loop