LoginPanel changes

Changed LoginPanel form to a class.