authentication and entity framework configuration