error handling, fix signup bugs