Fix style for login block and small optimize for secure layout.