Added user registration feature, but bugs are still there.