Adding feature to change button of login to profile when the user is already logged