added local user registration and local login