Added functionality in front-end when the login is success change data