Login activity and layout change.

code re-oganisation and better layout for the login activity.
and back to api 10 !