completed login and registration; cleaned up unused files