In most cases, this is not a login problem, but a problem with creating the database itself. Therefore, if an error occurs while creating your database, it will not be created in the first place. In this case, if you tried to log in, regardless of the user, the login will fail. This usually happens due to a logical misinterpretation of the db context.
Visit the site in a browser and REALLY read these error logs, this will help you identify a problem with your code (usually conflicting logical problems with the model).
In my case, the code compiled in the order, the same registration problem, while I was still loading the management studio, I looked at the error log, fixed my db context restrictions, and the site started working fine ... meanwhile the management studio is still loading
Justice O. Mar 26 '15 at 19:58 2015-03-26 19:58
source share