More functions added to support the signup page