Login with serializable

Fixed bugs