Add signup functionality and move views to templates