logging in by hitting enter + sorting fix