Update login and testing functionality