Expanded Login functionality