Start to add new function that only registered user can login into the system