Fixed all bugs regarding the signup page.
pulled from upstream.