try catch block for user signup