Then how to implement the username and store it in sessions for login.

Thanks.