edited error handling in signup