added checking for blank username and password during registration