Update login/signup form

Added input sanitization, validation
Added error message support for invalid input