Fixed switching login/logout label. Now logout is working fine. Password Logic and username logic updated