login arrumado by Fernando