Added error handling to character creation

when an invalid name or bio is used in the character creation, it
recreates the page and displays a pop up message