Check for valid login (use built-in user database. manage it in admin page)