Fix small issue when login details are wrong