change the root_path from "profile#index# to "devise/sessions#new"

To avoid showing an alert message  when a user, who is not logged in, accesses the root_path "/".
Set the root_path to the login screen, and add redirect path to "profile#index# after a user logged in.
change overwrite the redirect path after destroying a session (signing out)