add css and successful login check