Improve login and update gridview/details view