Working login module.
merge, update, etc.