User login implementation for CouchCMS