Fixed directions when using accelerometer. Fixed login interface issues