Resolved login bugs