Added signup and fixed bugs