This question already has an answer here:
As the title suggests: for example, the following user story too generic?
"A registered user wants to login in order to use the site's services"
Or, should I use more detailed user stories, like the following ones?
1. "User insert email and password in the textboxes and click the login button"; 2. "Server receives login data and check if they contain errors"; 3. "Server puts the new user in the database if the login data are correct"; 4. "The logged user is brought to his profile page".
It seems the more it is specific, the more we understand the part of codes required ( 1)"textboxes", 1) "login button", 3) "database", ...).
Which is the correct way between these two?