Implemented rough login/register functionality