Added model support for authentication; created factories