Added functional for login users and registration user