added method for preventing user press back button after logged in