sanitizing done for registration and login