bug fix for sign up functionality