login working with bugs