Condition added for add refresh button and update login page