Added user login/register logic and models