auto select username input - fixes #198
fix redirection after login - fixes #122