Login Update

Login now sources branch list from db