Implement signup function in index view