Resolved login and registration issues, need to rethink design of repos